package com.gg.hc.service;

import com.gg.common.pojo.MDesignProcedureDetails;

import java.util.List;

public interface MDesignProcedureDetailsService {

    /**
     * 根据id查询
     * @param id
     * @return
     */
    List<MDesignProcedureDetails> queryMDesignProcedureDetailsById(List<MDesignProcedureDetails> id);

    /**
     * 插入物料成本小计
     * @param mDesignProcedureDetails
     * @return
     */
    int updateMDesignProcedureDetailsModuleSubtotal(MDesignProcedureDetails mDesignProcedureDetails);//oo

    /**
     * 当前工序物料标志 已设计
     * @param id
     * @return
     */
    int updateMDesignProcedureDetailsTagById(Integer id);
    /**
     * 根据id查询
     * @param id
     * @return
     */
    MDesignProcedureDetails selectByPrimaryKey(Integer id);
    /**
     * 批量添加工序
     */
    int BatchUpdateDesignProcedureProcess(List<MDesignProcedureDetails> mDesignProcedureDetailsList);

    /**
     * 删除工序
     * @param id
     * @return
     */
    int deleteByPrimaryKey(int id);
    int insert(List<MDesignProcedureDetails> record);
    /**
     * 添加工序
     * @param
     * @return
     */
    int AddMDesignProcedureProcess(MDesignProcedureDetails mDesignProcedureDetails);

    /**
     * 根据父级编号查询
     * @param id
     * @return
     */
    List<MDesignProcedureDetails> queryMDesignProcedureDetailsByParentId(int id);
}
